home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
Clean 1.2.4
/
PowerMacInterface
/
menus.dcl
< prev
next >
Wrap
Text File
|
1996-12-20
|
2KB
|
47 lines
definition module menus;
import mac_types;
// Initialization and Allocation
InitMenus :: !Toolbox -> Toolbox;
NewMenu :: !Int !{#Char} !Toolbox -> (!MacMenuHandle, !Toolbox);
DisposeMenu :: !MacMenuHandle !Toolbox -> Toolbox;
// Forming the menus
AppendMenu :: !MacMenuHandle !{#Char} !Toolbox -> Toolbox;
AddResMenu :: !MacMenuHandle !Int !Toolbox -> Toolbox;
// Forming the Menu Bar
InsertMenu :: !MacMenuHandle !Int !Toolbox -> Toolbox;
ClearMenuBar :: !Toolbox -> Toolbox;
DrawMenuBar :: !Toolbox -> Toolbox;
DeleteMenu :: !Int !Toolbox -> Toolbox;
CalcMenuSize :: !MacMenuHandle !Toolbox -> Toolbox;
GetMHandle :: !Int !Toolbox -> (!MacMenuHandle, !Toolbox);
GetMenuBar :: !Toolbox -> (!Handle, !Toolbox);
SetMenuBar :: !Handle !Toolbox -> Toolbox;
InsMenuItem :: !MacMenuHandle !{#Char} !Int !Toolbox -> Toolbox;
DelMenuItem :: !MacMenuHandle !Int !Toolbox -> Toolbox;
// Choosing From a Menu
MenuSelect :: !Int !Int !Toolbox -> (!Int,!Int,!Toolbox);
MenuKey :: !Int !Toolbox -> (!Int,!Int,!Toolbox);
HiliteMenu :: !Int !Toolbox -> Toolbox;
PopUpMenuSelect :: !MacMenuHandle !Int !Int !Int !Toolbox -> (!Int,!Int,!Toolbox);
// Controlling the Appearance of Items
SetItem :: !MacMenuHandle !Int !{#Char} !Toolbox -> Toolbox;
GetItem :: !MacMenuHandle !Int !{#Char} !Toolbox -> (!{#Char},!Toolbox);
DisableItem :: !MacMenuHandle !Int !Toolbox -> Toolbox;
EnableItem :: !MacMenuHandle !Int !Toolbox -> Toolbox;
CheckItem :: !MacMenuHandle !Int !Bool !Toolbox -> Toolbox;
// Miscellaneous Routines
CountMItems :: !MacMenuHandle !Toolbox -> (!Int,!Toolbox);